package com.jkwindy.demo.controller;

import java.util.Date;
import java.util.UUID;

import javax.xml.ws.RespectBinding;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.jkwindy.demo.pojo.User;

@RestController
public class UserController {
	@GetMapping(value="/getUser",produces=MediaType.APPLICATION_JSON_UTF8_VALUE)
	public User getUser() {
		User user = new User();
		user.setId(UUID.randomUUID().toString().replace("-", ""));
		user.setSex("male");
		user.setAge(25);
		user.setBirthday(new Date());
		user.setBirthdayStr(new Date().getTime()+"");
		return user;
	}
}
